package com.crr.listener;

import com.mysql.cj.protocol.Message;
import org.springframework.data.redis.listener.KeyExpirationEventMessageListener;
import org.springframework.data.redis.listener.RedisMessageListenerContainer;
import org.springframework.stereotype.Component;

@Component
public class CarExpireListener {//extends KeyExpirationEventMessageListener

    /**
     * 构造方法
     *
     * @param listenerContainer
     */
    /*public CarExpireListener(RedisMessageListenerContainer listenerContainer) {
        super(listenerContainer);
    }


    public void onMessage(Message message, byte[] pattern) {
        String key=message.toString();
        System.out.println(key);
    }*/
}